<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title> Sistema Transgressao Cambial</title>
        <h:outputStylesheet library="css" name="theme.css" />
        
        <style type="text/css">
            .style3 {color: #000000}
            
            .style4 {color: #548CE9}
        </style>
        
    </h:head>
    <h:body>
        <h:form>
            <table width="975" height="130" border="0"  align="center">
                <tr>
                    <td height="131" colspan="5"><div id="Header">
                    <h:graphicImage library="imagemSite" name="headerBna.png" height="130" width="975" />
                </div></td>
                </tr>
            </table>
            <table width="975" height="34" border="0"  align="center">
                <tr>
                    <td width="975" height="34" ><div id="botao1">
                            <p:menubar autoSubmenuDisplay="true">
                                 <p:submenu  >
                                    <f:facet name="label">
                                        <p:menuitem  value="Pagina Principal" icon="/resources/imagemSite/home.png" url="/index.xhtml"  />
                                    </f:facet>
                                </p:submenu>
                                 <p:submenu  >
                                    <f:facet name="label">
                                        <p:menuitem  value="Aplicativo" icon="/resources/imagemSite/ferramentas.png" />
                                    </f:facet>
                                    <p:menuitem value="Sistema Transgressao Cambial" url="/Transgressao/listaProcesso.xhtml" />
                                    
                                </p:submenu>
                                
                                
                            </p:menubar>
                        </div></td>
                </tr>
            </table>
            <table width="975"  height="200" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE">
                <tr>
                    <td width="975" height="400"  valign="top"  >
                        <p:divider ></p:divider>
                        
                       
                        <p:commandButton value="Criar Transgressor" action="#{transgressor.navegaCriarTransgressor}"  styleClass="ui-wijmenu" ajax="false"  />

                        <p:dataTable id="tblTransgressor" value="#{transgressor.listaTransgressores}" var="dataTransgressor" paginator="true" rows="20" selectionMode="single" emptyMessage="Nao encontrou dados" >
                            <p:column filterBy="#{dataTransgressor.nome}" >
                                <f:facet name="header">
                                    <h:outputText value="Nome" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.nome}" />
                            </p:column>
                            

    						<p:column filterBy="#{dataTransgressor.nacionalidade}" >
                                <f:facet name="header">
                                    <h:outputText value="Nacionalidade" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.nacionalidade}" />
                            </p:column>
                      
  		     				<p:column >
                                <f:facet name="header">
                                    <h:outputText value="Data de Nascimento" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.dataNascimento}" />
                            </p:column>
 
  		     				<p:column >
                                <f:facet name="header">
                                    <h:outputText value="Telefone" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.telefone}" />
                            </p:column>

  		     				<p:column >
                                <f:facet name="header">
                                    <h:outputText value="Endereço" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.endereco}" />
                            </p:column>
                             
                            <p:column filterBy="#{dataTransgressor.localizacaoCarta}" >
                                <f:facet name="header">
                                    <h:outputText value="Nº BI/Passaporte" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.localizacaoCarta}" />
                            </p:column>
                            <p:column filterBy="#{dataTransgressor.procurador}" >
                                <f:facet name="header">
                                    <h:outputText value="Procurador" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.procurador}" />
                            </p:column>
                              <p:column filterBy="#{dataTransgressor.nomerepresentante}" >
                                <f:facet name="header">
                                    <h:outputText value="Representante" />
                                </f:facet>
                                <h:outputText value="#{dataTransgressor.nomerepresentante}" />
                            </p:column>
                           
                            <p:column > 
                                <center>
                                    <f:facet name="header">
                                        <h:outputText value="Editar" style="font-size:10px" />
                                    </f:facet>
                                    <h:commandLink action="#{transgressor.navegaEditarTransgressor}"   >
	                            <h:graphicImage library="imagemSite" name="botaoedit.png"  title="Editar" style="border:none"  />
	                        <f:param name="idTransgressor" value="#{dataTransgressor.idTransgressor}"  />
                                   </h:commandLink>
                               </center>
                            </p:column>
                            <p:column >
                                <center>
                                     <f:facet name="header">
                                        <h:outputText value="Apagar" style="font-size:10px" />
                                    </f:facet>
                                    <h:commandLink action="#{transgressor.navegaApagarTransgressor}"  >
                                    <h:graphicImage library="imagemSite" name="botaodelete.png"  title="Apagar" style="border:none"  />
                                    <f:param name="idTransgressor" value="#{dataTransgressor.idTransgressor}"   />
	                        </h:commandLink>
                                </center>
                            </p:column>

                        </p:dataTable>
                        
                        <p:divider  ></p:divider>

                        <p:separator style="height:2px"  ></p:separator>

                        <p:commandButton value="Visualizar Processo" action="listaProcesso"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Estado Processo" action="listaProcessoEstado"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Transgressor" action="listaTransgressor"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="true"  />
                        <p:commandButton value="Visualizar Multa Transgressor" action="listaExtensaoProcesso"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Desconto" action="listaBoleanDesconto"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Recurso" action="listaRecurso"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Moeda" action="listaTipoMoeda"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Notificacao" action="listaTipoNotificacao"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                        <p:commandButton value="Visualizar Percentagem Multa" action="listaMulta"   styleClass="ui-wijmenu" immediate="true"  ajax="false" disabled="false"  />
                    </td>
                </tr>
            </table>

        </h:form>
    </h:body>

</html>
